<?php

namespace app\admin\model\zhongzhuan\ec;

use think\Model;


class Tongji extends Model
{

    

    

    // 表名
    protected $name = 'ec_tongji';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'integer';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = false;
    protected $deleteTime = false;

    // 追加属性
    protected $append = [

    ];
    
    
    
    /**
     * 关联客户表获取客户昵称
     * @return \think\model\relation\BelongsTo
     */
    public function userinfo()
    {
        return $this->belongsTo('app\admin\model\zhongzhuan\ec\Ecuser', 'ecuser_id','id',[],'LEFT')->setEagerlyType(0);
    }

    







}
